package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;


/**
 * 咨询师预约
 * 数据库通用操作实体类（普通增删改查）
 *
 * @author
 * @email
 * @date 2021-01-19 21:46:13
 */
@TableName("zixunshiyuyue")
public class ZixunshiyuyueEntity<T> implements Serializable {
    private static final long serialVersionUID = 1L;


    public ZixunshiyuyueEntity() {

    }

    public ZixunshiyuyueEntity(T t) {
        try {
            BeanUtils.copyProperties(this, t);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    /**
     * 主键id
     */
    @TableId
    private Long id;
    /**
     * 预约编号
     */

    private String yuyuebianhao;

    /**
     * 咨询师账号
     */

    private String zixunshizhanghao;

    /**
     * 咨询师姓名
     */

    private String zixunshixingming;

    /**
     * 用户名
     */

    private String yonghuming;

    /**
     * 用户姓名
     */

    private String yonghuxingming;

    /**
     * 手机
     */

    private String shouji;

    /**
     * 预约时间
     */

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat
    private Date yuyueshijian;

    private String shijianduan1;
    private String shijianduan2;
    private String shijianduan3;
    private String shijianduan4;
    private String shijianduan5;
    private String shijianduan6;
    private String yonghu1;
    private String yonghu2;
    private String yonghu3;
    private String yonghu4;
    private String yonghu5;
    private String yonghu6;

    public String getYonghu1() {
        return yonghu1;
    }

    public void setYonghu1(String yonghu1) {
        this.yonghu1 = yonghu1;
    }

    public String getYonghu2() {
        return yonghu2;
    }

    public void setYonghu2(String yonghu2) {
        this.yonghu2 = yonghu2;
    }

    public String getYonghu3() {
        return yonghu3;
    }

    public void setYonghu3(String yonghu3) {
        this.yonghu3 = yonghu3;
    }

    public String getYonghu4() {
        return yonghu4;
    }

    public void setYonghu4(String yonghu4) {
        this.yonghu4 = yonghu4;
    }

    public String getYonghu5() {
        return yonghu5;
    }

    public void setYonghu5(String yonghu5) {
        this.yonghu5 = yonghu5;
    }

    public String getYonghu6() {
        return yonghu6;
    }

    public void setYonghu6(String yonghu6) {
        this.yonghu6 = yonghu6;
    }

    public String getShijianduan1() {
        return shijianduan1;
    }

    public void setShijianduan1(String shijianduan1) {
        this.shijianduan1 = shijianduan1;
    }

    public String getShijianduan2() {
        return shijianduan2;
    }

    public void setShijianduan2(String shijianduan2) {
        this.shijianduan2 = shijianduan2;
    }

    public String getShijianduan3() {
        return shijianduan3;
    }

    public void setShijianduan3(String shijianduan3) {
        this.shijianduan3 = shijianduan3;
    }

    public String getShijianduan4() {
        return shijianduan4;
    }

    public void setShijianduan4(String shijianduan4) {
        this.shijianduan4 = shijianduan4;
    }

    public String getShijianduan5() {
        return shijianduan5;
    }

    public void setShijianduan5(String shijianduan5) {
        this.shijianduan5 = shijianduan5;
    }

    public String getShijianduan6() {
        return shijianduan6;
    }

    public void setShijianduan6(String shijianduan6) {
        this.shijianduan6 = shijianduan6;
    }

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date addtime;

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 设置：预约编号
     */
    public void setYuyuebianhao(String yuyuebianhao) {
        this.yuyuebianhao = yuyuebianhao;
    }

    /**
     * 获取：预约编号
     */
    public String getYuyuebianhao() {
        return yuyuebianhao;
    }

    /**
     * 设置：咨询师账号
     */
    public void setZixunshizhanghao(String zixunshizhanghao) {
        this.zixunshizhanghao = zixunshizhanghao;
    }

    /**
     * 获取：咨询师账号
     */
    public String getZixunshizhanghao() {
        return zixunshizhanghao;
    }

    /**
     * 设置：咨询师姓名
     */
    public void setZixunshixingming(String zixunshixingming) {
        this.zixunshixingming = zixunshixingming;
    }

    /**
     * 获取：咨询师姓名
     */
    public String getZixunshixingming() {
        return zixunshixingming;
    }

    /**
     * 设置：用户名
     */
    public void setYonghuming(String yonghuming) {
        this.yonghuming = yonghuming;
    }

    /**
     * 获取：用户名
     */
    public String getYonghuming() {
        return yonghuming;
    }

    /**
     * 设置：用户姓名
     */
    public void setYonghuxingming(String yonghuxingming) {
        this.yonghuxingming = yonghuxingming;
    }

    /**
     * 获取：用户姓名
     */
    public String getYonghuxingming() {
        return yonghuxingming;
    }

    /**
     * 设置：手机
     */
    public void setShouji(String shouji) {
        this.shouji = shouji;
    }

    /**
     * 获取：手机
     */
    public String getShouji() {
        return shouji;
    }

    /**
     * 设置：预约时间
     */
    public void setYuyueshijian(Date yuyueshijian) {
        this.yuyueshijian = yuyueshijian;
    }

    /**
     * 获取：预约时间
     */
    public Date getYuyueshijian() {
        return yuyueshijian;
    }

}
